//#include <stdio.h>
//struct student
//{
//	char name[20];//姓名
//	int age;//年龄
//	float weight;//体重
//	char id[20];//学号
//}s4,s5 ,s6; //这里分号不能少
////s4 ,s5 ,s6 是全局的结构体变量
//
//
//int main()
//{
//    struct student s2 = {"张三",20,60.5f,"1223456"};
//	//不一定得按照顺序，也可以使用 .操作符来访问结构成员
//	struct student s4 = {.age=20, .weight=80, .id = "789456", .name = "xcv"};
//	printf("%d %s %f %s",s4.age,s4.id,s4.weight,s4.name);
//	return 0;
//}

//#include<stdio.h>
//struct a
//{
//	int n;
//	int m;
//};
//struct b
//{
//	struct a s1;
//	int *p;
//	char arr[10];
//	
//};
//
//int main ()
//{
//	struct b c = {{5,4},NULL,"123456"};
//	
//	return 0;
//}
#include<stdio.h>
int main()
{
	//有符号的整数提升是按照变量的数据类型的符号位来提升的
	char a = 3;//char--signed char
	//00000000000000000000000000000011
	//00000011-a
	char b = 127;
	//00000000000000000000000001111111
	//01111111-b
	char c =a+b;
	//00000000000000000000000000000011
	//+
	//00000000000000000000000001111111
	//=
	//00000000000000000000000010000010
	//10000010-c
	
	//%d-以10进制的形式打印有符号的整数
	//11111111111111111111111110000010 ---c提升后的结果-补码
	//10000000000000000000000001111110-原码
	printf("%d\n",c);
}
